package com.demo.test.state.mode;

import com.demo.test.state.mode.iml.State;

public class WorkContext {

    private State state;

    private int personState;

    private int currTime;

    public WorkContext(){
        this.state = new CurrTime8();
    }

    public void setCurrTime(int currTime) {
        this.currTime = currTime;
    }

    public int getCurrTime() {
        return currTime;
    }

    public int getPersonState() {
        return personState;
    }

    public void setPersonState(int personState) {
        this.personState = personState;
    }

    public State getState() {
        return state;
    }


    public void setState(State state) {
        this.state = state;
    }

    public void work() {

        this.state.handle(this);
    }


}
